﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="bar.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.bar2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>Hide/Dispaly Left Menu</title>
    <link rel="stylesheet" type="text/css" href="./lib/style/bar.css" />

    <script language="JavaScript">

        var LEFT_MENU_VIEW = 0;

        function leftmenu_open() {
            LEFT_MENU_VIEW = 0;
            leftmenu_ctrl();
        }

        function leftmenu_ctrl() {
            var frameSet2 = top.document.getElementById("mainFrame");
            if (LEFT_MENU_VIEW == 0) {
                frameSet2.cols = "200,8,*";
                LEFT_MENU_VIEW = 1;
                myarrow.src = "./lib/images/arrow_l.gif";
            }
            else {
                frameSet2.cols = "0,8,*";
                LEFT_MENU_VIEW = 0;
                myarrow.src = "./lib/images/arrow_r.gif";
            }
        }

        function setPointer(theRow, thePointerColor) {
            if (typeof (theRow.style) == 'undefined' || typeof (theRow.cells) == 'undefined') {
                return false;
            }

            var row_cells_cnt = theRow.cells.length;
            for (var c = 0; c < row_cells_cnt; c++) {
                theRow.cells[c].bgColor = thePointerColor;
            }

            return true;
        }

    </script>

</head>
<body style="padding-right: 0pt; padding-left: 0pt; padding-bottom: 0pt; margin: 0pt;
    padding-top: 0pt" leftmargin="0" topmargin="0" onload="leftmenu_ctrl()">
    <table class="col"   cellspacing="0" cellpadding="0" width="100%" 
        align="center" style=" height: 100%">
        <tbody>
            <tr >
                <td >
                    <table height="50" cellspacing="0" bordercolordark="#ffffff" cellpadding="0" width="100%"
                        bgcolor="#eeeeee" bordercolorlight="#000000" border="1">
                        <tbody>
                            <tr onmouseover="setPointer(this, '#D3E5FF')" onclick="leftmenu_ctrl()" onmouseout="setPointer(this, '#EEEEEE')">
                                <td style="cursor: hand">
                                    <img id="myarrow" src="./lib/images/arrow_l.gif" alt="点击展开/收缩窗口！">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</body>
</html>
